package com.spic.system.mapper;

import com.spic.system.domain.HrUser;

import java.util.List;

/**
 * hr_userMapper接口
 *
 * @author spic
 * @date 2022-06-09
 */
public interface HrUserMapper
{
    /**
     * 查询hr_user
     *
     * @param personnelCode hr_user主键
     * @return hr_user
     */
    public HrUser selectHrUserByPersonnelCode(String personnelCode);

    /**
     * 查询hr_user列表
     *
     * @param hrUser hr_user
     * @return hr_user集合
     */
    public List<HrUser> selectHrUserList(HrUser hrUser);

    public List<HrUser> selectHrUserAllList();

    /**
     * 新增hr_user
     *
     * @param hrUser hr_user
     * @return 结果
     */
    public int insertHrUser(HrUser hrUser);

    /**
     * 修改hr_user
     *
     * @param hrUser hr_user
     * @return 结果
     */
    public int updateHrUser(HrUser hrUser);

    /**
     * 删除hr_user
     *
     * @param personnelCode hr_user主键
     * @return 结果
     */
    public int deleteHrUserByPersonnelCode(String personnelCode);

    /**
     * 批量删除hr_user
     *
     * @param personnelCodes 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteHrUserByPersonnelCodes(String[] personnelCodes);
}
